package cbc.dao.pojo;

/**
 * TDoctorLimitId entity. @author MyEclipse Persistence Tools
 */

public class TDoctorLimitId implements java.io.Serializable {

	// Fields

	private TDoctor doctor;
	private TLimit limit;

	// Constructors

	/** default constructor */
	public TDoctorLimitId() {
	}

	/** full constructor */
	public TDoctorLimitId(TDoctor doctor, TLimit limit) {
		this.doctor = doctor;
		this.limit = limit;
	}

	// Property accessors

	public TDoctor getDoctor() {
		return doctor;
	}

	public void setDoctor(TDoctor doctor) {
		this.doctor = doctor;
	}

	public TLimit getLimit() {
		return limit;
	}

	public void setLimit(TLimit limit) {
		this.limit = limit;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TDoctorLimitId))
			return false;
		TDoctorLimitId castOther = (TDoctorLimitId) other;

		return ((this.getDoctor() == castOther.getDoctor()) || (this
				.getDoctor() != null && castOther.getDoctor() != null && this
				.getDoctor().equals(castOther.getDoctor())))
				&& ((this.getLimit() == castOther.getLimit()) || (this
						.getLimit() != null && castOther.getLimit() != null && this
						.getLimit().equals(castOther.getLimit())));
	}

	

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getDoctor() == null ? 0 : this.getDoctor().hashCode());
		result = 37 * result
				+ (getLimit() == null ? 0 : this.getLimit().hashCode());
		return result;
	}

}